package cn.shyouchi.wuguanjia.android.ui.home.security.thread.message.matter;

import android.os.Parcel;
import android.os.Parcelable;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import cn.shyouchi.wuguanjia.android.common.Constant;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * Created by Eenie on 2017/3/16 at 15:20
 * Email: 472279981@qq.com
 * Des:
 */

public class MatterNotice extends RealmObject implements MultiItemEntity, Parcelable {

    @PrimaryKey
    private int id;
    /**
     * name : 易易紫
     * username : 唐海斌
     * room_name : B202
     * checkstatus : 2
     * start : 2017-03-17 10:08:00
     * end : 2017-04-17 10:08:00
     * created_at : 2017-03-17 10:08:46
     * checkstatus_name : 待审核
     */
    private String name;
    private String username;
    private String room_name;
    private int checkstatus;
    private String start;
    private String end;
    private String created_at;
    private String checkstatus_name;

    public MatterNotice() {

    }




    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }







    @Override
    public int getItemType() {
        return Constant.MATTER_TYPE_MEET_APPLY;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRoom_name() {
        return room_name;
    }

    public void setRoom_name(String room_name) {
        this.room_name = room_name;
    }

    public int getCheckstatus() {
        return checkstatus;
    }

    public void setCheckstatus(int checkstatus) {
        this.checkstatus = checkstatus;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getCheckstatus_name() {
        return checkstatus_name;
    }

    public void setCheckstatus_name(String checkstatus_name) {
        this.checkstatus_name = checkstatus_name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.name);
        dest.writeString(this.username);
        dest.writeString(this.room_name);
        dest.writeInt(this.checkstatus);
        dest.writeString(this.start);
        dest.writeString(this.end);
        dest.writeString(this.created_at);
        dest.writeString(this.checkstatus_name);
    }

    protected MatterNotice(Parcel in) {
        this.id = in.readInt();
        this.name = in.readString();
        this.username = in.readString();
        this.room_name = in.readString();
        this.checkstatus = in.readInt();
        this.start = in.readString();
        this.end = in.readString();
        this.created_at = in.readString();
        this.checkstatus_name = in.readString();
    }

    public static final Parcelable.Creator<MatterNotice> CREATOR = new Parcelable.Creator<MatterNotice>() {
        @Override
        public MatterNotice createFromParcel(Parcel source) {
            return new MatterNotice(source);
        }

        @Override
        public MatterNotice[] newArray(int size) {
            return new MatterNotice[size];
        }
    };
}
